/// @class : chat_record
/// @date : 2023-03-13 18:32
/// @name : LFC
/// @description : 聊天记录
class ChatRecord {
  num? raw;
  num? total;
  List<Rows>? rows;

  ChatRecord({this.raw, this.total, this.rows});

  ChatRecord.fromJson(Map<String, dynamic> json) {
    raw = json['raw'];
    total = json['total'];
    if (json['rows'] != null) {
      rows = <Rows>[];
      json['rows'].forEach((v) {
        rows!.add(new Rows.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['raw'] = this.raw;
    data['total'] = this.total;
    if (this.rows != null) {
      data['rows'] = this.rows!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Rows {
  num? id;
  String? senduserid;
  String? reciveuserid;
  dynamic projectNo;
  String? sendtime;
  String? msgtype;
  String? sendtext;
  dynamic delFlag;
  dynamic readFlag;

  Rows(
      {this.id,
        this.senduserid,
        this.reciveuserid,
        this.projectNo,
        this.sendtime,
        this.msgtype,
        this.sendtext,
        this.delFlag,
        this.readFlag});

  Rows.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    senduserid = json['senduserid'];
    reciveuserid = json['reciveuserid'];
    projectNo = json['projectNo'];
    sendtime = json['sendtime'];
    msgtype = json['msgtype'];
    sendtext = json['sendtext'];
    delFlag = json['delFlag'];
    readFlag = json['readFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['senduserid'] = this.senduserid;
    data['reciveuserid'] = this.reciveuserid;
    data['projectNo'] = this.projectNo;
    data['sendtime'] = this.sendtime;
    data['msgtype'] = this.msgtype;
    data['sendtext'] = this.sendtext;
    data['delFlag'] = this.delFlag;
    data['readFlag'] = this.readFlag;
    return data;
  }
}